package cn.tedu.task3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class School {
    private String name = "清华大学";
    private int schoolnum = 2;
    private int majornum =127;
    @Autowired
    private Teacher teacher;
    @Autowired
    private Student student;

    @Override
    public String toString() {
        return "School{" +
                "name='" + name + '\'' +
                ", schoolnum=" + schoolnum +
                ", majornum=" + majornum +
                ", teacher=" + teacher +
                ", student=" + student +
                '}';
    }
}
